#include <iostream>
#include <vector>
using namespace std;
int main(){
    int a,c;
    cin >> a;
    vector<int> b;
    int tmp;
    while(cin >> tmp){
        b.push_back(tmp);
        if(cin.get() == '\n')   break;
    }
    cin >> c;
    for(int i = 0; i < b.size();i++){
        if(b[i] == c)   cout << i+1;
    }

    return 0;
}
